package com.tc.vo;

import com.tc.domain.Disease_diagnosis;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * <p>
 * 疾病诊断视图对象
 * </p>
 *
 * @author tc
 * @since 2025-07-12
 */
@Data
@ApiModel(value = "Disease_diagnosisVO对象", description = "疾病诊断视图对象")
public class Disease_diagnosisVO {
    
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "国际ICD编码")
    private String icdCode;

    @ApiModelProperty(value = "疾病编码")
    private String diseaseCode;

    @ApiModelProperty(value = "疾病名称")
    private String diseaseName;

    @ApiModelProperty(value = "疾病分类")
    private String diseaseCategory;
    
    /**
     * 将实体转换为VO
     * 
     * @param entity 实体对象
     * @return 视图对象
     */
    public static Disease_diagnosisVO fromEntity(Disease_diagnosis entity) {
        if (entity == null) {
            return null;
        }
        
        Disease_diagnosisVO vo = new Disease_diagnosisVO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
}
